package com.woniu.bh.backstage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.bh.backstage.dto.AdDto;
import com.woniu.bh.backstage.dto.ManagerDto;
import com.woniu.bh.common.core.domain.advertisement.Advertisement;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxb
 * @since 2020-10-12
 */
@Repository
public interface AdvertisementMapper extends BaseMapper<Advertisement> {
    IPage<AdDto> queryPage(Page<AdDto> page,@Param("adName")String adName, @Param("adStatus") Integer adStatus, @Param("adOnShelf") Integer adOnShelf, @Param("dateStart")Long dateStart, @Param("dateEnd") Long dateEnd);
    IPage<AdDto> queryOnshelfPage(Page page, @Param("adStatus") Integer adStatus, @Param("dateStart")long dateStart, @Param("dateEnd") long dateEnd);
    IPage<AdDto> queryWaitOnshelfPage(Page page, @Param("dateStart")long dateStart, @Param("dateEnd") long dateEnd);
}
